package com.betterjr.modules.application.entity;

import java.io.Serializable;

/**
 * 从数据字段中转换封装应用类型
 * @ClassName: ApplicationType 
 * @Description: 从数据字段中转换封装应用类型
 * @author xuyp
 * @date 2017年11月15日 上午10:01:51 
 *
 */
public class ApplicationType implements Serializable {

    /** 
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = -2224142171945027670L;

    // 数据字典明细表名称
    private String dictItemName;

    // 数据字典明细表值
    private String dictItemValue;

    // 应用总条数
    private Integer applicationCount;

    // 数据字典编码
    private String dictCode;

    // 数据字典详情表主键id
    private Long dictItemId;

    public String getDictItemName() {
        return dictItemName;
    }

    public void setDictItemName(String dictItemName) {
        this.dictItemName = dictItemName;
    }

    public String getDictItemValue() {
        return dictItemValue;
    }

    public void setDictItemValue(String dictItemValue) {
        this.dictItemValue = dictItemValue;
    }

    public Integer getApplicationCount() {
        return applicationCount;
    }

    public void setApplicationCount(Integer applicationCount) {
        this.applicationCount = applicationCount;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public Long getDictItemId() {
        return dictItemId;
    }

    public void setDictItemId(Long dictItemId) {
        this.dictItemId = dictItemId;
    }

    @Override
    public String toString() {
        return "ApplicationType [dictItemName=" + dictItemName + ", dictItemValue=" + dictItemValue
                + ", applicationCount=" + applicationCount + ", dictCode=" + dictCode + ", dictItemId=" + dictItemId
                + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((applicationCount == null) ? 0 : applicationCount.hashCode());
        result = prime * result + ((dictCode == null) ? 0 : dictCode.hashCode());
        result = prime * result + ((dictItemId == null) ? 0 : dictItemId.hashCode());
        result = prime * result + ((dictItemName == null) ? 0 : dictItemName.hashCode());
        result = prime * result + ((dictItemValue == null) ? 0 : dictItemValue.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        ApplicationType other = (ApplicationType) obj;
        if (applicationCount == null) {
            if (other.applicationCount != null) return false;
        } else if (!applicationCount.equals(other.applicationCount)) return false;
        if (dictCode == null) {
            if (other.dictCode != null) return false;
        } else if (!dictCode.equals(other.dictCode)) return false;
        if (dictItemId == null) {
            if (other.dictItemId != null) return false;
        } else if (!dictItemId.equals(other.dictItemId)) return false;
        if (dictItemName == null) {
            if (other.dictItemName != null) return false;
        } else if (!dictItemName.equals(other.dictItemName)) return false;
        if (dictItemValue == null) {
            if (other.dictItemValue != null) return false;
        } else if (!dictItemValue.equals(other.dictItemValue)) return false;
        return true;
    }

}
